﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam1.DAO;
using MockPrjTeam1.Entity;
using System.Data;

namespace MockPrjTeam1.Biz
{
    public class ProgrammeBiz
    {
        static ProgrammeDAO programmeDAO;

        public ProgrammeBiz()
        {
            programmeDAO = new ProgrammeDAO();
        }

        public List<Programme> GetProgramme()
        {
            return programmeDAO.GetProgramme();
        }

        public bool Btn_Save_Programme(Programme programme, string editOradd)
        {
            return programmeDAO.Btn_Save_Programme(programme, editOradd);
        }

        public List<Programme> NextPage()
        {
            return programmeDAO.NextPage();
        }

        public List<Programme> PreviousPage()
        {
            return programmeDAO.PreviousPage();
        }

        public Programme GetOne(int id)
        {

            return programmeDAO.GetOne(id);
        }

    }
}